<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="/js/vue.js"></script>

    <div id="app">
        <p>{{msg}}</p>
    </div>
    <script>
        let app = new Vue({
            //键值对
            el:'#app',//字符串 ，跟标签
            data:{//
                msg:'hello word'
            }
        })

        console.log(app.msg);

        console.log(app.$data.msg);//$

        app.$age = 10//创建全局变量

    </script>
    
</body>



</html>